﻿using System;
using Cosmos.Compiler.Builder;
using Cosmos.Hardware;
using Cosmos.Hardware.PC.Bus.USB;

using Cosmos.Hardware.Storage;

namespace SuperNover_v1._2
{
    class Program
    {
        #region Cosmos Builder logic
        // Most users wont touch this. This will call the Cosmos Build tool
        [STAThread]
        static void Main(string[] args)
        {
            BuildUI.Run();
        }
        #endregion

        // Main entry point of the kernel
        public static void Init()
        {
            var xBoot = new Cosmos.Sys.Boot();
            xBoot.Execute();
            Console.WriteLine(FileSystem.New());
            while (true)
                ;
        }

        public static void drawRectangle(int top, int bottom, int left, int right, uint color, int fill)
        {
            for (uint i = (uint)left; i < (uint)right; i++)
            {
                VGAScreen.SetPixel320x200x8(i, (uint)top, color);
                VGAScreen.SetPixel320x200x8(i, (uint)bottom, color);
            }
            for (uint i = (uint)top; i <= (uint)bottom; i++)
            {
                VGAScreen.SetPixel320x200x8((uint)left, i, color);
                VGAScreen.SetPixel320x200x8((uint)right, i, color);
            }
        }
    }
}